package com.springcloud.demo.servicefeign.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author zhouyang
 * @Description
 * @date 2018/08/07
 */
@FeignClient(value = "eureka-client", fallback = TestServiceImpl.class)
public interface TestService {

    /**
     * 以requestParam包装要传递的参数
     * @param name
     * @return
     */
    @GetMapping(value = "/test/hello")
    public String hi(@RequestParam("name") String name);

}
